/*    */ package com.zimbra.cs.redolog.op;
/*    */ 
/*    */ import com.zimbra.cs.mailbox.MailboxManager;
/*    */ import com.zimbra.cs.mailbox.MailboxOperation;
/*    */ import com.zimbra.cs.redolog.RedoLogInput;
/*    */ import com.zimbra.cs.redolog.RedoLogOutput;
/*    */ import java.io.IOException;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ModifyInviteFlag
/*    */   extends RedoableOp
/*    */ {
/* 32 */   private int mId = 0;
/*    */   int mCompNum;
/*    */   private int mFlag;
/*    */   private boolean mAdd;
/*    */   
/*    */   public ModifyInviteFlag() {
/* 38 */     super(MailboxOperation.ModifyInviteFlag);
/*    */   }
/*    */   
/*    */   public ModifyInviteFlag(int mailboxId, int id, int compNum, int flag, boolean add) {
/* 42 */     this();
/* 43 */     setMailboxId(mailboxId);
/*    */     
/* 45 */     this.mCompNum = compNum;
/* 46 */     this.mFlag = flag;
/* 47 */     this.mAdd = add;
/*    */   }
/*    */   
/*    */   public void redo() throws Exception {
/* 51 */     MailboxManager.getInstance().getMailboxById(getMailboxId());
/*    */   }
/*    */   
/*    */   protected String getPrintableData()
/*    */   {
/* 56 */     StringBuffer sb = new StringBuffer("id=");
/* 57 */     sb.append(this.mId).append(", comp=").append(this.mCompNum);
/* 58 */     sb.append(", flag=").append(this.mFlag).append(", add=").append(this.mAdd);
/* 59 */     return sb.toString();
/*    */   }
/*    */   
/*    */   protected void serializeData(RedoLogOutput out) throws IOException {
/* 63 */     out.writeInt(this.mId);
/* 64 */     out.writeInt(this.mCompNum);
/* 65 */     out.writeInt(this.mFlag);
/* 66 */     out.writeBoolean(this.mAdd);
/*    */   }
/*    */   
/*    */   protected void deserializeData(RedoLogInput in) throws IOException {
/* 70 */     this.mId = in.readInt();
/* 71 */     this.mCompNum = in.readInt();
/* 72 */     this.mFlag = in.readInt();
/* 73 */     this.mAdd = in.readBoolean();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/redolog/op/ModifyInviteFlag.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */